package com.sz.common.pay.citic.entity.other;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * Created by siqishangshu on 17/10/20.
 *
 * 响应报文
 <?xml version="1.0" encoding="GBK"?>
 <stream>
 <status></status><!--交易状态 char(7)-->
 <statusText></statusText><!--交易状态信息 varchar(254)-->
 <list name="userDataList">
 <row>
     <stt></stt><!--状态标志  char(1) 0：成功；1：失败；2：未知；3：审核拒绝；4：用户撤销-->
     <status></status><!--状态代码 char(7)-->
     <statusText></statusText><!--状态信息含义 varchar(254)-->
 </row>
 </list>
 </stream>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "stream")
@Data
public class TransactionStatusRes {
    private String status;                  //交易状态 char(7)-->
    private String statusText;              //交易状态信息 varchar(254)-->

    @XmlElementWrapper(name = "list")
    @XmlElement(name = "row")
    private List<TransactionStatus> list;   //name="userDataList">
}
